import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'taskReplyStatus'
})
export class TaskReplyStatusPipe implements PipeTransform {

  transform(value: any, args?: any): any {
    switch (value) {
      case "success":
        return "成功";
      case "waiting":
        return "待接受";
      case "process":
        return "待处理";
      case "failed":
        return "失败";
      case "pause":
        return "待处理";
      default:
        return "未知";
    }
    return null;
  }

}
